class newSlider extends eui.HSlider implements eui.UIComponent {
	public constructor() {
		super();

		this.addEventListener(egret.Event.ADDED_TO_STAGE,this.init,this)
	}

	protected partAdded(partName: string, instance: any): void {
		super.partAdded(partName, instance);
	}


	protected childrenCreated(): void {
		super.childrenCreated();

	}
	// 滑块滑轴
	public thumb;
	public track;


	public init() {
		this.addEventListener("touchMove", function (e) {
			// console.log((this.thumb.x / this.width).toFixed(2));
			// let p = ((this.thumb.x / this.width) * 100).toFixed(0);

			// this.track.value = p;
		}, this)
	}

}